home *** CD-ROM | disk | FTP | other *** search
- function cTimer()
- {
- this.startTime = getTimer();
- }
- cTimer.prototype.restartTimer = function()
- {
- this.startTime = getTimer();
- };
- cTimer.prototype.milliseconds = function()
- {
- return getTimer() - this.startTime;
- };
- cTimer.prototype.seconds = function()
- {
- return int((getTimer() - this.startTime) / 1000);
- };
- iLevelPauseTimer = new cTimer();
-